package vip.xiaonuo.sys.modular.wechat.checkin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import vip.xiaonuo.sys.modular.wechat.checkin.entity.WechatCheckinData;

/**
 * @author zjt
 * @description
 * @since 2025/7/16 13:39
 */
public interface WechatCheckinDataMapper extends BaseMapper<WechatCheckinData> {

    /**
     * 批量保存打卡记录
     *
     * @param sql
     */
    @Insert("<script>" +
            "INSERT INTO wechat_checkin_data (sys_user, userid, groupname, checkin_type, exception_type, " +
            "checkin_time, location_title, location_detail, wifiname, notes,wifimac, mediaids, lat, lng, " +
            "deviceid, sch_checkin_time, groupid, timeline_id) VALUES ${sql}" +
            "</script>")
    void insertBatch(String sql);
}
